package com.example.mybatis.sqlserver.springbootmybatissqlserver.pojo.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by hzy on 2019/2/19.
 *
 * sample:
 *
 * {
 *   "CategoryId": "sample string 1",
 *   "CategoryPropertyNameId": "sample string 2",
 *   "PropertyName": "sample string 3",
 *   "PropertyNamePrompt": "sample string 4",
 *   "IsRequied": "sample string 5",
 *   "IsInput": "sample string 6",
 *   "IsMultiselect": "sample string 7",
 *   "IsShow": "sample string 8"
 * }
 */
public class EditCategoryPropertyDTO {

    /**
     * 属性所属的类目id
     *
     * 目前不支持修改。
     */
    @NotNull
    @NotBlank
    @JsonProperty("CategoryId")
    public String categoryId;

    /**
     * 属性名id
     */
    @NotNull
    @NotBlank
    @JsonProperty("CategoryPropertyNameId")
    public String categoryPropertyNameId;

    @NotNull
    @NotBlank
    @JsonProperty("PropertyName")
    public String propertyName;

    @NotNull
    @NotBlank
    @JsonProperty("PropertyNamePrompt")
    public String propertyNamePrompt;

    /**
     */
    @NotNull
    @JsonProperty("IsRequied")
    public Boolean isRequired;

    /**
     */
    @NotNull
    @JsonProperty("IsInput")
    public Boolean isInput;

    /**
     */
    @NotNull
    @JsonProperty("IsMultiselect")
    public Boolean isMultiSelect;

    /**
     */
    @NotNull
    @JsonProperty("IsShow")
    public Boolean isShow;
}
